import request from '@/utils/request'

// 创建水质统计
export function createWaterQualityAlertCount(data) {
  return request({
    url: '/ht/water-quality-alert-count/create',
    method: 'post',
    data: data
  })
}

// 更新水质统计
export function updateWaterQualityAlertCount(data) {
  return request({
    url: '/ht/water-quality-alert-count/update',
    method: 'put',
    data: data
  })
}

// 删除水质统计
export function deleteWaterQualityAlertCount(id) {
  return request({
    url: '/ht/water-quality-alert-count/delete?id=' + id,
    method: 'delete'
  })
}

// 获得水质统计
export function getWaterQualityAlertCount(id) {
  return request({
    url: '/ht/water-quality-alert-count/get?id=' + id,
    method: 'get'
  })
}

// 获得水质统计分页
export function getWaterQualityAlertCountPage(query) {
  return request({
    url: '/ht/water-quality-alert-count/page',
    method: 'get',
    params: query
  })
}

// 导出水质统计 Excel
export function exportWaterQualityAlertCountExcel(query) {
  return request({
    url: '/ht/water-quality-alert-count/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
